import request from '../utils/request';

// 获取积分排行
export function getPointsRanking(groupId, params) {
    return request({
        url: `/api/points/ranking/${groupId}`,
        method: 'get',
        params
    });
}

// 调整积分
export function adjustPoints(data) {
    return request({
        url: '/api/points/adjust',
        method: 'post',
        data
    });
}

// 获取积分日志
export function getPointsLogs(params) {
    return request({
        url: '/api/points/logs',
        method: 'get',
        params
    });
} 